package searcher;

import java.util.*;

/**
 * the element structure used in FileNumSetElem and thereafter NittySearcher
 * @author shitgao
 *
 */
public class FileNumSetElem {
	private int key;
	private Vector<Integer> appears;
	
	public FileNumSetElem (int key,int app){
		appears=new Vector<Integer>() ;
		this.key=key;
		appears.add(app);
	}
	
	public FileNumSetElem (int key){
		this.key=key;
		appears=null;
	}
	
	public FileNumSetElem (int key, Vector<Integer> appears){
		this.key=key;
		this.appears=appears;
	}
	
	public void addAppear (int app){
		appears.add(app);
	}
	
	public Vector<Integer> getAppears(){
		return appears;
	}
	
	public int getKey(){
		return key;
	}

}
